package org.easyway.tiles.generic;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class WorldFileFilter extends FileFilter {
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true; // false;
        }

        String extension = Utils.getExtension(f);
        if(extension == null)
        	return false;
        if(extension.equals("wld"))
        	return true;

        return false;
    }

    //The description of this filter
    public String getDescription() {
        return "World's file";
    }

}
